<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			var zif=["f1","f2","f3","f4"];
			var ff=0;
			for (var i in zif) {
				document.write(zif[i]+"<br/>");
				var z=zif[i].indexOf("f");
				if(z!=-1){
					ff=ff+1;
				}
			}
			document.write(ff);
			
		</script>
	</head>
	<body>
	</body>
</html>
